home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Misc
/
msql-1.0.6
/
src
/
makegen
/
yacc.mm
< prev
Wrap
Text File
|
1995-02-14
|
427b
|
25 lines
#!/bin/sh
. $TOP/makegen/makegen.cf
src=$1
shift
comment=$*
outfile=`echo $src | sed "s/\.y\$/.c/"`
obj=`echo $src | sed "s/\.y\$/.o/"`
echo "$outfile : $src"
echo " @echo \"$comment\""
echo ' $(YACC) $(YACC_FLAGS)'" $src"
echo " mv y.tab.c $outfile"
echo
echo "$obj : $outfile"
echo ' $(CC) $(CC_FLAGS)'" -c $outfile"
echo
echo "clean ::"
echo " rm -f $outfile y.tab.*"
echo
echo "depend ::"
echo " @touch y.tab.h"
echo